;;; config.el --- ctrl-ui Layer packages File for Spacemacs
;;

;; http://emacsredux.com/blog/2014/04/05/which-function-mode/
(which-function-mode)
(setq which-func-unknown "404")

(define-fringe-bitmap 'right-curly-arrow
  [#b00000000
   #b00000000
   #b00000000
   #b00000000
   #b01110000
   #b00010000
   #b00010000
   #b00000000])

(define-fringe-bitmap 'left-curly-arrow
  [#b00000000
   #b00001000
   #b00001000
   #b00001110
   #b00000000
   #b00000000
   #b00000000
   #b00000000])

;; diminish some minor mode icons at modeline
(spacemacs|use-package-add-hook hybrid-mode
  :post-config
  ;; I dont know why which-key and change evil cursor color shuold put at here
  ;; change evil normal state cursor color to chartreuse3
  (spacemacs/add-evil-cursor "normal" "chartreuse3" 'box)
  ;; diminish which-key-mode default
  (spacemacs|diminish which-key-mode)
  (spacemacs|diminish hybrid-mode))

;; smartparens package was removed
;; (spacemacs|use-package-add-hook smartparens
;;   :post-config
;;   (spacemacs|diminish smartparens-mode))

(spacemacs|use-package-add-hook yasnippet
  :post-config
  (spacemacs|diminish yas-minor-mode))

;; importmagic mode was removed from python file for temporary
;; (spacemacs|use-package-add-hook python
;;   :post-config
;;   (spacemacs|diminish importmagic-mode))

(spacemacs|use-package-add-hook company
  :post-config
  (spacemacs/diminish-undo 'company-mode))

;; set font for chinese
(dolist (charset '(kana han symbol cjk-misc bopomofo))
  (set-fontset-font
   (frame-parameter nil 'font)
   charset
   (font-spec :name "-MS  -Microsoft YaHei-light-normal-normal-*-*-*-*-*-*-0-iso10646-1"
              :weight 'normal
              :slant 'normal
              :size 13.5)))

